package com.yonyou.sto.modules.ims.mapper;

import com.yonyou.sto.modules.ims.model.ImsBuyer;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author aegon
 * @since 2020-09-28
 */
public interface ImsBuyerMapper extends BaseMapper<ImsBuyer> {

    /**
     * 根据购买方税号查询购买方信息
     * @param buyerTaxSn
     * @return
     */
    ImsBuyer getBuyerByBuyerTaxSn(@Param("buyerTaxSn") String buyerTaxSn);
    /**
     * 模糊查询付款单位相似度最高的公司
     * @param buyerName
     * @return
     */
    List<ImsBuyer> getBuyerByBuyerName(@Param("buyerName") String buyerName);
}
